package com.san.hkhospital.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.san.hkhospital.entity.BedExample;
import com.san.hkhospital.entity.Bed;
import com.san.hkhospital.vo.BedTableVo;

/**
 * ClassName:BedService
 * PackageName:com.san.hkhospital.service
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
public interface BedService{


    long countByExample(BedExample example);

    int deleteByExample(BedExample example);

    int deleteByPrimaryKey(Integer bedId);

    int insert(Bed record);

    int insertSelective(Bed record);

    List<Bed> selectByExample(BedExample example);

    Bed selectByPrimaryKey(Integer bedId);

    int updateByExampleSelective(Bed record,BedExample example);

    int updateByExample(Bed record,BedExample example);

    int updateByPrimaryKeySelective(Bed record);

    int updateByPrimaryKey(Bed record);


    List<BedTableVo> selectBed();
    boolean addBed(Bed bed);

    boolean updateBed(Bed bed);

    Bed findOneBed(Integer bedId);
    PageInfo selectAll(Integer sectionId, Integer stateId, Integer pageNum, Integer pageSize);

    List<BedTableVo> selectAll2(Integer sectionId, Integer stateId);
}
